﻿@{
    Layout = null;
    ViewBag.Title = "用户组管理";
}
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>

  <script>
      if (top.boardtop) {
          top.boardtop.head_txt.innerText = "用户组管理";
      }
    </script>
    <script src="@Url.Content("~/Scripts/jquery.min.js", true)" type="text/javascript"></script>

    @Html.DevExpress().GetStyleSheets(
        new StyleSheet { ExtensionType = ExtensionType.Splitter, Theme = DevExpressHelper.Theme }

)
    @Html.DevExpress().GetScripts(
            new Script { ExtensionType = ExtensionType.Splitter }
    ) 
     <script>
         /*刷新节点名称*/
         function refreshNodeName(focusKey) {
             contentleft.refreshNodeName(focusKey);
         }
         /*刷新节点*/
         function refreshLevelNode(focusKey) {
             contentleft.refreshLevelNode(focusKey);
         }
         /*删除节点*/
         function afterDeleteNode() {
             contentleft.afterDeleteNode();
         }
    </script>
</head>
<body>
    @Html.DevExpress().Splitter(settings =>
{
    settings.Name = "ContentSplitter";
    settings.Width = System.Web.UI.WebControls.Unit.Percentage(100);
    settings.Height = System.Web.UI.WebControls.Unit.Percentage(100);
    settings.Styles.Pane.Paddings.Padding = System.Web.UI.WebControls.Unit.Pixel(0);
    settings.Styles.Pane.Border.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(0);
    settings.FullscreenMode = true;
    settings.Panes.Add(subpane =>
    {
        subpane.Name = "ContentLeft";
        subpane.PaneStyle.CssClass = "leftPane";
        subpane.ShowCollapseBackwardButton = DefaultBoolean.True;
        subpane.Size = System.Web.UI.WebControls.Unit.Pixel(150);
        subpane.ShowCollapseBackwardButton = DefaultBoolean.False;
        subpane.ScrollBars = System.Web.UI.WebControls.ScrollBars.Auto;
        subpane.SetContent("<iframe  id='contentleft' name='contentleft' style='width:100%;height:100%' frameborder='0' src='" + Url.Action("GroupTree", "EmplGroup") + "'></iframe>");
        
    });

    settings.Panes.Add(subpane =>
    {
        subpane.Name = "ContentCenter";
        subpane.PaneStyle.CssClass = "contentPane";
        subpane.Separator.Visible = DefaultBoolean.True;
        subpane.Separator.SeparatorStyle.Border.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(1);
        subpane.Separator.SeparatorStyle.BorderTop.BorderWidth = System.Web.UI.WebControls.Unit.Pixel(0);
        subpane.ScrollBars = System.Web.UI.WebControls.ScrollBars.Auto;
        if ((bool)ViewData["isHaveTreeData"])
        {
            subpane.SetContent("<iframe  id='contentframe' name='contentframe' style='width:100%;height:100%' frameborder='0'></iframe>");            
        }
        else
        {
            subpane.SetContent("<iframe  id='contentframe' name='contentframe' style='width:100%;height:100%' frameborder='0' src='" + Url.Action("AddGroup","EmplGroup") + "'></iframe>");
            
        }

    });

}).GetHtml()
</body>
</html>
